/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.course;

import com.idenger.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 视频历史Entity
 * @author 视频历史
 * @version 2017-12-13
 */
public class EduVideoHistory extends DataEntity<EduVideoHistory> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户ID
	private String courseContentId;		// 视频ID
	private String score;		// 分值
	private String status;		// 状态
	
	public EduVideoHistory() {
		super();
	}

	public EduVideoHistory(String id){
		super(id);
	}

	@Length(min=0, max=64, message="用户ID长度必须介于 0 和 64 之间")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=64, message="视频ID长度必须介于 0 和 64 之间")
	public String getCourseContentId() {
		return courseContentId;
	}

	public void setCourseContentId(String courseContentId) {
		this.courseContentId = courseContentId;
	}
	
	@Length(min=0, max=10, message="分值长度必须介于 0 和 10 之间")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Length(min=0, max=10, message="状态长度必须介于 0 和 10 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}